﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Default.master" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="Runda.EShop.Web.Customer.MyProductList" %>
<%@ Register Src="~/UserControl/CustomerProductCateTree.ascx" TagPrefix="uc" TagName="CustomerProductCateTree" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
 <script  type="text/javascript">
     function DoSearch() {
         var selKey = document.getElementById('txtProduct').value;
         if (selKey == '') {
             alert('请输入产品名称与产品编号');
             return false;
         }
         $('#ProductList').attr('src', 'ProductListByKey.aspx?Key='+selKey);
         return false;
     }

     function OnSearch() { 
         if (event.keyCode == 13) {
             return DoSearch();
         }

     }

     $(function () {
         $('#ProductList').attr('src', $('#hidURL').val());
     })
</script>

<style type="text/css">
    .dialog
    {
        background: url("../images/btn/dialog_bg.jpg") no-repeat;
        padding: 10px 20px;
        left: 100px;
        top: 300px;
        width: 295px;
        height: 95px;
        font-size: 12px;
        float: left;
        position: absolute;
        z-index: 50;
    }
    .dialog p
    {
        margin: 0px;
        padding: 0px;
        width: 265px;
        height: 35px;
    }
    .dialog #txtOrderCount
    {
        border: 1px solid rgb(204, 204, 204);
        width: 140px;
        height: 25px;
    }
    
    .d_ok
    {
        margin-right: 5px;
    }
    .d_cacel
    {
        margin-right: 20px;
    }
    .selectedItem
    {
        background-color: #FFFFFF;
        color: #81BEF7;
        font-family: MS Shell Dlg,tahoma;
        font-size: 12px;
    }
    .selectedItem A
    {
        font-size: 10pt;
        color: #81BEF7;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight: bold;
    }
    .selectedItem A:link
    {
        font-size: 10pt;
        color: #81BEF7;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight:bolder;
    }
    .selectedItem A:visited
    {
        font-size: 10pt;
        color: #FFFFF0;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight: bold;
        background-color: #395D84;
        padding-top: 4px;
        padding-right: 2px;
        padding-bottom: 4px;
        padding-left: 3px;
        height: 20px;
        width: 62px;
        text-align: center;
    }
    .selectedItem A:active
    {
        font-size: 10pt;
        color: #CCCCCC;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight: bold;
    }
    .selectedItem A:hover
    {
        font-size: 10pt;
        color: #FFFFFF;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight: bold;
        background-color: #0086C6;
        padding-top: 4px;
        padding-right: 3px;
        padding-bottom: 4px;
        padding-left: 3px;
        height: 20px;
        width: 62px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphLeft" runat="server">
    <div style="margin:0 0 0 6px;width:180px"><input id="txtProduct" title="产品编号、名称" type="text" class="input" style="width:100px" onclick="this.value='';this.style.color='#444444'" onkeydown="return OnSearch();"/>&nbsp;<input id="btnSearch" type="button" value="查询" class="button" style="width:50px" onclick="return DoSearch();"/></div>
    <uc:CustomerProductCateTree runat="server" ID="ucCustomerProductCateTree" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
<span class="banner6 r" style="margin: 3px 10px 3px 0;">
                    <asp:LinkButton ID="lnkbtnSync" runat="server">新品注册申请</asp:LinkButton></span>
<iframe name="ProductList" id="ProductList" border=0 frameborder=0 width="794px" height="1000px" style="border:0"></iframe>
        <asp:HiddenField ID="hidURL" runat="server" ClientIDMode="Static"/>
</asp:Content>
